
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>对于springcloud了解多少 - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>对于springcloud了解多少 - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">Spring Cloud作为一套微服务架构工具集，其核心设计目标是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud的设计目标是帮助开发人员构建具有高可用性、动态扩展性、和易于维护的分布式系统。</div>
          </div>
          <div class="card-source">来源: 文档引言部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">Spring Cloud提供了哪些核心组件来支持微服务架构？请列举至少五项。</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud的核心组件包括：服务注册与发现（如Eureka）、配置管理（Spring Cloud Config）、负载均衡（如Ribbon）、断路器和熔断器（如Hystrix）、网关服务（如Gateway）、分布式追踪（如Sleuth）和消息驱动的微服务（Spring Cloud Stream）等。</div>
          </div>
          <div class="card-source">来源: 1.2 Spring Cloud 的核心组件</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">模式</div>
          <div class="card-question">在Spring Cloud中，像Hystrix或Resilience4j这样的组件主要用于实现什么设计模式？其目的是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">模式</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">它们用于实现断路器模式（Circuit Breaker Pattern），目的是保护系统免受级联故障的影响。</div>
          </div>
          <div class="card-source">来源: 1.2 Spring Cloud 的核心组件</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">Spring Cloud Netflix子项目包含了哪些关键组件？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud Netflix项目包含的关键组件有：Eureka（服务注册与发现）、Ribbon（客户端负载均衡器）、Hystrix（断路器组件）以及Zuul（API网关组件）。</div>
          </div>
          <div class="card-source">来源: 2.1 Spring Cloud Netflix</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">相较于第一代网关Zuul，Spring Cloud Gateway有哪些显著的技术特点？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud Gateway是第二代网关服务，它基于Spring 5的WebFlux构建，支持响应式编程模型。其主要特点包括动态路由、请求限流与过滤、以及与Spring Security的集成认证。</div>
          </div>
          <div class="card-source">来源: 2.2 Spring Cloud Gateway</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">Spring Cloud Config如何实现配置的集中管理和动态更新？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud Config通过支持使用Git、SVN等版本控制系统来集中存储配置文件，并支持实时更新配置，从而避免了因配置变更而重新启动服务。</div>
          </div>
          <div class="card-source">来源: 2.3 Spring Cloud Config</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">根据CAP原则，Spring Cloud主要采用哪种模型，并优先保证了哪些特性？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud采用CAP原则中的AP模型，优先保证系统的可用性（Availability）和分区容忍性（Partition tolerance），并通过幂等性设计和重试机制来实现数据一致性。</div>
          </div>
          <div class="card-source">来源: 3.4 一致性与容错性</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">Spring Cloud提供了哪些容错机制来保证系统的高可用性？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">为确保高可用性，Spring Cloud提供了一系列的容错机制，例如断路器、熔断器和重试策略，以确保系统在发生故障时仍能保持服务可用。</div>
          </div>
          <div class="card-source">来源: 3.2 高可用性</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">使用Spring Cloud进行微服务开发有哪些主要优势？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">主要优势包括：1. 提供了全面的工具集，帮助快速构建和管理微服务；2. 采用模块化设计，允许开发者按需选择和组合组件；3. 拥有庞大的社区和生态系统，提供丰富的文档和扩展支持。</div>
          </div>
          <div class="card-source">来源: 5.1 优势</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">Spring Cloud如何与Kubernetes平台进行集成？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Spring Cloud Kubernetes通过集成Kubernetes原生的服务发现和负载均衡机制、使用Kubernetes的ConfigMap和Secrets进行配置管理，以及利用Kubernetes的弹性伸缩功能，实现了与Kubernetes平台的深度集成。</div>
          </div>
          <div class="card-source">来源: 2.4 Spring Cloud Kubernetes</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">在采用Spring Cloud进行微服务开发时，开发者可能会面临哪些挑战？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">开发者可能面临的挑战包括：1. 学习曲线较陡，需要掌握多个组件和概念；2. 随着服务数量增多，系统复杂性管理难度增加；3. 在高并发场景下需要进行性能优化和故障排查。</div>
          </div>
          <div class="card-source">来源: 5.2 挑战</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">在Spring Cloud中，如何实现分布式追踪以监控服务间的调用链路？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">通过使用Spring Cloud Sleuth和Zipkin组件，可以实现分布式追踪，这有助于分析和监控微服务之间的调用关系。</div>
          </div>
          <div class="card-source">来源: 1.2 Spring Cloud 的核心组件</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
